// $Id: Version.java 11 2011-09-08 21:03:19Z huijzer@gmail.com $
package lime.model;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.model.IWorkbenchAdapter;

public class Version extends RepositoryObject implements IWorkbenchAdapter {

	private String versionLabel;
	private String modifyDate;
	private String modifier;
	private String logEntry;
	private String objectType;
	private String contentType;
	private String lockOwner;
	private String linkCnt;
	private String isReplica;

	public Version(String id, String name) {
		super(id, name);
	}

	public String getVersionLabel() {
		return versionLabel;
	}

	public void setVersionLabel(String versionLabel) {
		this.versionLabel = versionLabel;
	}

	public String getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(String modifyDate) {
		this.modifyDate = modifyDate;
	}

	public String getModifier() {
		return modifier;
	}

	public void setModifier(String modifier) {
		this.modifier = modifier;
	}

	public String getLogEntry() {
		return logEntry;
	}

	public void setLogEntry(String logEntry) {
		this.logEntry = logEntry;
	}

	public String getObjectType() {
		return objectType;
	}

	public void setObjectType(String objectType) {
		this.objectType = objectType;
	}

	public String getContentType() {
		return contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public String getLockOwner() {
		return lockOwner;
	}

	public void setLockOwner(String lockOwner) {
		this.lockOwner = lockOwner;
	}

	public String getLinkCnt() {
		return linkCnt;
	}

	public void setLinkCnt(String linkCnt) {
		this.linkCnt = linkCnt;
	}

	public String getIsReplica() {
		return isReplica;
	}

	public void setIsReplica(String isReplica) {
		this.isReplica = isReplica;
	}

	
	// ========================================
	// IWorkbenchAdapter
	// ========================================

	@Override
	public Object[] getChildren(Object o) {
		return new Object[] {};
	}

	@Override
	public ImageDescriptor getImageDescriptor(Object object) {
		return null;
	}

	@Override
	public String getLabel(Object o) {
		return this.getVersionLabel();
	}

	@Override
	public Object getParent(Object o) {
		return null;
	}

}
